<html>
  <head>
    <title>
      Sideffect
    </title>
    <%= stylesheet_link_tag "sideffect", :media => "all" %>
    <%= javascript_include_tag :defaults, :cache => true %>
<script type="text/javascript">
var baseopacity=0

function showtext(thetext,elementid){
if (!document.getElementById)
return
textcontainerobj=document.getElementById(elementid)
browserdetect=textcontainerobj.filters? "ie" : typeof textcontainerobj.style.MozOpacity=="string"? "mozilla" : ""
instantset(baseopacity)
document.getElementById(elementid).innerHTML=thetext
highlighting=setInterval("gradualfade(textcontainerobj)",50)
}

function hidetext(elementid){
cleartimer()
instantset(baseopacity, elementid)
}

function instantset(degree,elementid){
if (browserdetect=="mozilla")
textcontainerobj.style.MozOpacity=degree/100
else if (browserdetect=="ie")
textcontainerobj.filters.alpha.opacity=degree
else if (document.getElementById && baseopacity==0)
document.getElementById(elementid).innerHTML=""
}

function cleartimer(){
if (window.highlighting) clearInterval(highlighting)
}

function gradualfade(cur2){
if (browserdetect=="mozilla" && cur2.style.MozOpacity<1)
cur2.style.MozOpacity=Math.min(parseFloat(cur2.style.MozOpacity)+0.2, 0.99)
else if (browserdetect=="ie" && cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=20
else if (window.highlighting)
clearInterval(highlighting)
}
</script>
  </head>
  <body>
    <div id = "header">
      <table width="100%" cellpadding="0" border="0" align="center">
        <tr>
          <td align="left" width="30%">
            <div id = "search_box">
              <% form_tag(:action => "search") do %>
                <%= text_field_with_auto_complete(:search, :name, :autocomplete => "off") %>
                <%= submit_tag("Go") %>
              <% end %>
            </div>
          </td>
          <td align="center">
            <h2>
              Mining <%= link_to("Side Effects", :action => "index")%> from <%= link_to("Askapatient.com", "http://www.askapatient.com") %>
            </h2>  
          </td>
          <td align="right" width="30%">
            Developed by 
            <%= link_to("Jinyun Yan", "http://www.cs.rutgers.edu/~jinyuny") %>
            and
            <%= link_to("Chehai Wu", "http://www.cs.rutgers.edu/~wuc") %>
          </td>
        </tr>
      </table>
    </div>
    <%= render(:partial => "list_letters") %> 
    <div id = "main" align="center">
      <%= yield :layout %>
    </div>
  </body>
</html>
